<?php
namespace app\home\model;
use think\Model;

class ActivityOneModel extends Model
{
	protected $table  = 'qm_activity_one';


	//用户ID，是否报名活动
	public function getMemberActInfo($member_id)
	{
		$info = $this->where('member_id', $member_id)->find();
		return $info;
	}


	//添加
	public function addActivityOne($data)
	{
		$res = $this->insertGetId($data);
		return $res;
	}
}